<template>
  <div class="pages">
    <div class="banner"></div>
    <div v-for="(item, index) in zoneData" :key="index" class="i_content">
      <listItem :dataItem="item"></listItem>
    </div>
  </div>
</template>
<script setup>
import { ref, reactive, toRefs } from "vue";

import listItem from "@/components/home/listItem.vue";
let data = reactive({
  zoneData: [
    {
      zoneName: "热门课程",
      courseList: [
        {
          courseLogo: "",
          courseName: "111",
        },
      ],
    },
    {
      zoneName: "热门课程",
      courseList: [
        {
          courseLogo: "",
          courseName: "njnjnjnjnjnjnjnjnjnjnnjjnj",
        },
      ],
    },
  ],
});
var { zoneData } = toRefs(data);
</script>
<style scoped lang="less">
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.pages {
  .banner {
    height: 300px;
    background: #99a9bf;
  }

  .i_content {
    background: #f6f8fb;
  }
}
</style>
